//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class SpeedUpProduction extends LogicCommand {
    private final int cmdId = 12;
    private final int productionId;

    public SpeedUpProduction(int tt, int productionId) {
        super(tt);
        this.productionId = productionId;
    }

    public int getCommandId() {
        return 12;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(12);
        stream.writeInt(0);
        stream.writeInt(this.productionId);
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
